package com.xy.xymall.cart.service;

import com.xy.xymall.cart.vo.CartItemVo;
import com.xy.xymall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;


    CartItemVo getCartItem(String skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

    void checkItem(String skuId, Integer check);

    void countItem(String skuId, Integer num);

    void deleteItem(String skuId);

    List<CartItemVo> getUserCartItem();

}
